package cn.coco.jf.fw.admin.sys.model.role;

import java.util.Date;

import cn.coco.jf.fw.admin.config.consts.SysConsts;

import com.jfinal.plugin.activerecord.Model;

public class RoleModel extends Model<RoleModel>{
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    public static RoleModel dao = new RoleModel().use(SysConsts.DATA_SOURCE_NAME_MYSQL);
    
    public RoleModel newInstance(){
        return new RoleModel().use(SysConsts.DATA_SOURCE_NAME_MYSQL);
    }
    
    public RoleModel(){
        this.use(SysConsts.DATA_SOURCE_NAME_MYSQL);
    }

    private Integer roleId;
    private String roleName;
    private String delFlg;

    public Integer getRoleId() {
        return get("roleId");
    }

    public void setRoleId(Integer roleId) {
        set("roleId", roleId);
    }

    public String getRoleName() {
        return get("roleName");
    }

    public void setRoleName(String roleName) {
        set("roleName", roleName);
    }

    public String getDelFlg() {
        return get("delFlg");
    }

    public void setDelFlg(String delFlg) {
        set("delFlg", delFlg);
    }
}
